-- GENERATED SPELL FOR [Moonrage Darksoul] --


function spell0_1782(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(8599,pUnit)
pUnit:RegisterEvent('Sorts_1782', 598, 1)
end

function Sorts_1782(pUnit, Event)
local choix_sorts_1782 = math.random(0, 0)
if choix_sorts_1782 == 0 then
pUnit:RegisterEvent('spell0_1782', 1, 1)
end
end

function mob1782_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1782', math.random(1500, 3000), 1)
end

function mob1782_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1782_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1782_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1782, 1, 'mob1782_Action')
RegisterUnitEvent(1782, 2, 'mob1782_Leave')
RegisterUnitEvent(1782, 3, 'mob1782_Kill')
RegisterUnitEvent(1782, 4, 'mob1782_Die')
